import request from '@/utils/request'

//对某一个商品编辑
export function goodsSave(data) {
  return request({
    url: '/admin/goodsSave',
    method: 'post',
    data
  })
}

//获取商品列表
export function getGoodsList(query) {
  return request({
    url: '/admin/getGoodsList',
    method: 'get',
    params: query
  })
}
//获取某一个商品详情
export function getGoodsFind(query) {
  return request({
    url: '/admin/getGoodsFind',
    method: 'get',
    params: query
  })
}

//删除某一个商品
export function goodsDel(data) {
  return request({
    url: '/admin/goodsDel',
    method: 'post',
    data
  })
}